Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE Example: thick semitransparent crossing polyline in example VectorLayerActivity #1081

Conversation

eddiemuc
Copy link

Example: thick semitransparent crossing polyline in example VectorLayerActivity

This PR is NOT intended for merge! It gives an example for a problem we're facing in c:geo.

PR adds a polyline in the region of Hamburg/Germany to the android example VectorLayerActivity with following properties:

  • it has angles and crosses itself
  • it has a very wide strokewidth
  • it has a semi-transparent stroke color

This produces a polyline with "too solid" look on regions with sharp edges. Also, the polyline is very big even in the overview.

Question is: what are we doing wrong, and how do we have to adapt settings (maybe style?) to get rid of the overlaps?

Screenshot overview (the big blue dot is the polyine in hamburg):
image

Screenshot zoomed closer to polyline:
image

Screenshot very close to polyline:
image

@eddiemuc eddiemuc changed the title Example: thick semitransparent crossing polyline in example VectorLayerActivity DO NOT MERGE Example: thick semitransparent crossing polyline in example VectorLayerActivity Dec 15, 2023
@devemux86
Copy link
Collaborator

devemux86 commented Dec 15, 2023

@eddiemuc thanks for the example. There are 2 issues:

  • Spikes appearing at small zooms (any color)
  • Lines overlap (transparent color)

Both seem like OpenGL implementation issues.
There is no quick answer, we should probably check LineBucket for improvements.

@eddiemuc
Copy link
Author

I took a quick look into LineBucket. My oh my, that's some code you don't want to mess with.... Nothing to touch lightly.

@devemux86 Should I open an issue for this topic somewhere?

@devemux86
Copy link
Collaborator

@eddiemuc please create an issue so we can check it.

Indeed it is more complicated code with OpenGL calls. 🙂

@devemux86
Copy link
Collaborator

Closing as we examine the case in #1082.

@devemux86 devemux86 closed this Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants